
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace CardEffects
{
    // [CreateAssetMenu(fileName = "CardEffect_CreateSoldier", menuName = "CardSystem/CardEffect_CreateSoldier")]
    public class CardEffect_CreateSoldier : BaseCardEffectModule
    {
        public int a = 1;
        public int b = 2;
        
        public override void Apply(GameObject card, CardUseInfo useInfo = null)
        {
            var card_comp = card.GetComponent<CardController>();
            
            // BdPackage.BdUtils.log($"--- on CardEffect_CreateSoldier, a: {a}, b: {b}");
            
            // BdPackage.BdUtils.log($"--- CardEffect_CreateSoldier --- {card_comp.card_data.name}[{card.name}] --- selected_cards.Count: {GameController.instance.selected_cards.Count}, use_target_num: {card_comp.card_data.use_target_num}");
            BdPackage.BdUtils.log($"--- CardEffect_CreateSoldier --- card[{card_comp}] --- selected_cards.Count: {GameController.instance.selected_cards.Count}, use_target_num: {card_comp.card_data.use_target_num}");

            // for (var i = 0; i < GameController.instance.selected_cards.Count; i++)
            // {
            //     var selected_card_i = GameController.instance.selected_cards[i];    
            //     BdPackage.BdUtils.log($"--- {selected_card_i.gameObject.name} ---> {selected_card_i}");
            // }
        }
    }
}

